package com.houtai.dao;

import com.houtai.bean.TdActivityWorks;
import com.houtai.bean.dto.activity.works.ActivityWorksListDto;
import com.houtai.bean.dto.activity.works.TdActivityWorksListDto;
import com.houtai.bean.vo.activity.works.TdActivityWorksDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TdActivityWorksDao {

    /**
     * @Purpose   查找活动作品列表
     * @param     tdActivityWorksListDto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorks>
     */
    List<TdActivityWorks> findTdActivityWorksList(TdActivityWorksListDto tdActivityWorksListDto);
    /**
     * @Purpose   查找活动作品详情
     * @param     works_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    TdActivityWorksDetail
     */
    TdActivityWorksDetail findTdActivityWorksDetail(@Param("works_id") int works_id);
    /**
     * @Purpose   更新作品状态
     * @param     works_id
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    void
     */
    void updateTdActivityWorksState(@Param("works_id")int works_id,
                               @Param("state") int state);
    /**
     * @Purpose   查找活动作品列表
     * @param     dto
     * @version   1.0
     * @author    李准
     * @time      2017-08-19
     * @return    List<TdActivityWorks>
     */
    List<TdActivityWorks> findActivityWorksList(ActivityWorksListDto dto);

}
